<include file="Core:Public:header" />
{:W('Navigation')}
<script src="__PUBLIC__/js/datepicker/WdatePicker.js"></script>
<div class="body-right">
	<div class="row-table">
		<div class="row-table-title">添加班次</div>
		<div class="row-table-body">
			<form class="form-horizontal " action="{:U('hrm/workingshift/add')}" method="post">
				<p class="form-title">添加班次&nbsp;&nbsp;<a href="javascript:history.go(-1);">返回</a></p>
				<div class="form-group">
					<label for="name" class="col-sm-2 control-label">班次名称</label>
					<div class="col-sm-3">
						<input class="form-control" type="text" name="name" />
					</div>
					<label for="name" class="col-sm-2 control-label">类型</label>
					<div class="col-sm-3">
						<select class="form-control" name="type">
							<option value="0" selected="selected">标准工作制</option>
							<option value="1">周期工作制</option>
						</select>
					</div>
				</div>
				<div class="form-group">
					<label for="name" class="col-sm-2 control-label">开始时间</label>
					<div class="col-sm-3">
						<input class="form-control" type="text" name="start_time" onclick="WdatePicker({dateFmt:'HH:mm'})" />
					</div>
					<label for="name" class="col-sm-2 control-label">结束时间</label>
					<div class="col-sm-3">
						<input class="form-control" type="text" name="end_time" onclick="WdatePicker({dateFmt:'HH:mm'})" />
					</div>
				</div>
				<div class="form-group">
					<label for="name" class="col-sm-2 control-label">工作日</label>
					<div class="col-sm-8">
						<input type="checkbox" name="working_days[]" value="1" checked="checked" />&nbsp;周一&nbsp;&nbsp;
						<input type="checkbox" name="working_days[]" value="2" checked="checked"/>&nbsp;周二&nbsp;&nbsp;
						<input type="checkbox" name="working_days[]" value="3" checked="checked"/>&nbsp;周三&nbsp;&nbsp;
						<input type="checkbox" name="working_days[]" value="4" checked="checked"/>&nbsp;周四&nbsp;&nbsp;
						<input type="checkbox" name="working_days[]" value="5" checked="checked"/>&nbsp;周五&nbsp;&nbsp;
						<input type="checkbox" name="working_days[]" value="6" />&nbsp;周六&nbsp;&nbsp;
						<input type="checkbox" name="working_days[]" value="7" />&nbsp;周日
					</div>
				</div>
				<div class="form-group">
					<label for="name" class="col-sm-2 control-label">描述</label>
					<div class="col-sm-5">
						<textarea name="description" class="form-control" style="min-height:100px;"></textarea>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"></label>
					<div class="col-sm-3">
						<input name="submit" class="btn btn-primary" type="submit" value="保存"/>&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="button" class="btn" value="取消" onclick="javascript:history.go(-1);"/>
					</div>
				</div>
			</form>	
		</div>
	</div>
</div>
<div class="clear"></div>
<include file="Core:Public:alert" />
<include file="Core:Public:footer" />